﻿namespace AnyOffice.Model
{
    using System;

    public class VoteData
    {
        protected DateTime _addTime = DateTime.Now;
        protected object _beginDate;
        protected object _content;
        protected object _endDate;
        protected bool _isAnonymity;
        protected int _maxNum;
        protected object _readers;
        protected string _subject = string.Empty;
        protected string _toId = string.Empty;
        protected int _type;
        protected string _userId = string.Empty;
        protected int _viewPriv;
        protected int _voteId = -1;

        public DateTime AddTime
        {
            get
            {
                return this._addTime;
            }
            set
            {
                this._addTime = value;
            }
        }

        public DateTime BeginDate
        {
            get
            {
                return (DateTime) this._beginDate;
            }
            set
            {
                this._beginDate = value;
            }
        }

        public bool BeginDateIsNull
        {
            get
            {
                return (this._beginDate == null);
            }
            set
            {
                if (value)
                {
                    this._beginDate = null;
                }
            }
        }

        public string Content
        {
            get
            {
                return (string) this._content;
            }
            set
            {
                this._content = value;
            }
        }

        public bool ContentIsNull
        {
            get
            {
                return (this._content == null);
            }
            set
            {
                if (value)
                {
                    this._content = null;
                }
            }
        }

        public DateTime EndDate
        {
            get
            {
                return (DateTime) this._endDate;
            }
            set
            {
                this._endDate = value;
            }
        }

        public bool EndDateIsNull
        {
            get
            {
                return (this._endDate == null);
            }
            set
            {
                if (value)
                {
                    this._endDate = null;
                }
            }
        }

        public bool IsAnonymity
        {
            get
            {
                return this._isAnonymity;
            }
            set
            {
                this._isAnonymity = value;
            }
        }

        public int MaxNum
        {
            get
            {
                return this._maxNum;
            }
            set
            {
                this._maxNum = value;
            }
        }

        public string Readers
        {
            get
            {
                return (string) this._readers;
            }
            set
            {
                this._readers = value;
            }
        }

        public bool ReadersIsNull
        {
            get
            {
                return (this._readers == null);
            }
            set
            {
                if (value)
                {
                    this._readers = null;
                }
            }
        }

        public string Subject
        {
            get
            {
                return this._subject;
            }
            set
            {
                this._subject = value;
            }
        }

        public string ToId
        {
            get
            {
                return this._toId;
            }
            set
            {
                this._toId = value;
            }
        }

        public int Type
        {
            get
            {
                return this._type;
            }
            set
            {
                this._type = value;
            }
        }

        public string UserId
        {
            get
            {
                return this._userId;
            }
            set
            {
                this._userId = value;
            }
        }

        public int ViewPriv
        {
            get
            {
                return this._viewPriv;
            }
            set
            {
                this._viewPriv = value;
            }
        }

        public int VoteId
        {
            get
            {
                return this._voteId;
            }
            set
            {
                this._voteId = value;
            }
        }
    }
}

